$OpenBSD: patch-include_config_h_in,v 1.9 2017/04/17 17:29:13 rpe Exp $
--- include/config.h.in.orig	Thu Feb 23 21:00:40 2017
+++ include/config.h.in	Fri Apr 14 13:28:45 2017
@@ -129,11 +129,6 @@
 #endif
 #endif
 
-#undef HAVE_SYS_RESOURCE_H
-#ifdef HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
-#endif
-
 #undef HAVE_LIMITS_H
 #ifdef HAVE_LIMITS_H
 #include <limits.h>
@@ -221,6 +216,11 @@
 #undef HAVE_SYS_TIMEB_H
 #if HAVE_SYS_TIMEB_H
 #include <sys/timeb.h>
+#endif
+
+#undef HAVE_SYS_RESOURCE_H
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
 #endif
 
 #undef HAVE_SYS_IPC_H
